<?php
/**
 * Created by PhpStorm.
 * User: 68008000
 * Date: 2017/11/13
 * Time: 21:57
 */

namespace app\admin\validate;


use think\Validate;

class Caregory extends Validate
{
    protected $rule = [
        'cname'  => 'require',
        'pid' => 'require',
        'ctitle'=> 'require',
        'cdes'=>'require',
        'csort'=>'require',

    ];

    protected $message = [
        'cname.require'  => '请输入分类名称',
        'pid.require'  => '请输入标题',
        'ctitle.require'  => '请输入描述',
        'cdes.require'  => '请选择关键字',
        'csort.require'  => '请排序',
    ];
}